projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44d1c53
)
(display_string): Allow for negative hpos when clearing array.
author
Karl Heuer
<kwzh@gnu.org>
Wed, 6 Apr 1994 06:49:06 +0000
(06:49 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Wed, 6 Apr 1994 06:49:06 +0000
(06:49 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 49d74cecf3c77df983a508703302e6b7523e1faf..3effdc3066a109193d03e85755dbc629709dcc1f 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-3211,7
+3211,7
@@
display_string (w, vpos, string, length, hpos, truncate,
end = desired_glyphs->glyphs[vpos] + maxcol;
/* Store 0 in charstart for these columns. */
- for (i =
hpos
; i < end - p1start + hpos; i++)
+ for (i =
(hpos >= 0 ? hpos : 0)
; i < end - p1start + hpos; i++)
desired_glyphs->charstarts[vpos][i] = 0;
if (maxcol >= 0 && mincol > maxcol)